package com.sangengblog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sangengblog.domain.ResponseResult;
import com.sangengblog.domain.dto.ChangeStatusDto;
import com.sangengblog.domain.entity.Role;

import java.util.List;

/**
 * 角色信息表(Role)表服务接口
 *
 * @author makejava
 * @since 2024-04-10 22:04:19
 */
public interface RoleService extends IService<Role> {
    List<String> selectRoleKeyByUserId(Long id);

    ResponseResult list(int pageNum, int pageSize, String roleName, String status);

    ResponseResult changeStatus(ChangeStatusDto changeStatusDto);

    ResponseResult addRole(Role role);

    ResponseResult getRoleInfo(Long id);

    ResponseResult updateRole(Role role);

    ResponseResult deleteRole(Long id);

    ResponseResult listAllRole();
}
